﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RapChieuPhim.DTO;
using RapChieuPhim.DAO;
using System.Collections;

namespace RapChieuPhim.BUS
{
    class PhimBUS
    {
        public static PhimDTO GetByID(int id)
        {
            PhimDAO pDAO = new PhimDAO();
            return pDAO.GetByID(id);
        }

        public static IList GetAll()
        {
            PhimDAO pDAO = new PhimDAO();
            return pDAO.GetAll();
        }

        public static void Insert(PhimDTO Phim)
        {
            PhimDAO pDAO = new PhimDAO();
            pDAO.Insert(Phim);
        }

        public static void Update(PhimDTO Phim)
        {
            PhimDAO pDAO = new PhimDAO();
            pDAO.Update(Phim);
        }

        public static void Delete(int id)
        {
            PhimDAO pDAO = new PhimDAO();
            pDAO.Delete(id);
        }
    }
}
